﻿using Ninject.Core.Parameters;
using TestBat.IModels.Domain;
using TestBat.IViewModels.Factories;
using TestBat.IViewModels.Workspaces.Trainees;
using TestBat.ServiceLocator;

namespace TestBat.ViewModels.Factories
{
    public class TraineeGroupViewModelFactory : ITraineeGroupViewModelFactory
    {
        public ITraineeGroupViewModel Create(ITraineeGroup traineeGroup)
        {
            return DefaultServiceLocator.Get<ITraineeGroupViewModel>(
                            With.Parameters.ConstructorArgument("traineeGroup", traineeGroup));
        }
    }
}
